import { defineStore } from "pinia";
import createPersist from "../persist";
const id = "user";
export default defineStore({
  id,
  persist: createPersist(id),
  state: () => ({
    userInfo: {},
  }),
  getters: {},
  actions: {
    setUserInfo(user: any) {
      this.userInfo = user;
    },
  },
});